rd
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 9211)]
[New Thread 0x7fffe37ab700 (LWP 9212)]
[New Thread 0x7fffe1906700 (LWP 9213)]
double free or corruption (out)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05ff8 "double free or corruption (out)") at malloc.c:5341
#4  0x00007ffff7901730 in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555fd17f20, have_lock=<optimized out>) at malloc.c:4306
#5  0x0000555555713b28 in checked_free (ptr=0x55555fd17f30) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c77e330 "rnd_tobias_authmann")
    at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x000055555568771f in GameEnd () at game.c:4775
#9  0x000055555568761d in GameWon () at game.c:4722
#10 0x00005555556a7dbd in GameActionsExt () at game.c:11371
#11 0x00005555556a8485 in GameActions () at game.c:11625
#12 0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#13 0x0000555555646d83 in EventLoop () at events.c:359
#14 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05ff8 "double free or corruption (out)") at malloc.c:5341
#4  0x00007ffff7901730 in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555fd17f20, have_lock=<optimized out>) at malloc.c:4306
#5  0x0000555555713b28 in checked_free (ptr=0x55555fd17f30) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c77e330 "rnd_tobias_authmann") at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x000055555568771f in GameEnd () at game.c:4775
#9  0x000055555568761d in GameWon () at game.c:4722
#10 0x00005555556a7dbd in GameActionsExt () at game.c:11371
#11 0x00005555556a8485 in GameActions () at game.c:11625
#12 0x000055555567c8b9 in HandleGameActions () at screens.c:8369
#13 0x0000555555646d83 in EventLoop () at events.c:359
#14 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # just fished a level for the 1st time, at gameplay area, the gameplay info area at top of screen(the stuff on right of default theme) was solid color black, no save prompt showing, forgot if it did show and if so did I replied to it?
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 11265)]
[New Thread 0x7fffe37ab700 (LWP 11266)]
[New Thread 0x7fffe1905700 (LWP 11267)]
[Thread 0x7fffe37ab700 (LWP 11266) exited]
[Thread 0x7fffe37ec700 (LWP 11265) exited]
[Thread 0x7fffe1905700 (LWP 11267) exited]
[Inferior 1 (process 11261) exited normally]
(gdb) # looks like tape saved, new high score did not, level completion color changed to green
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
y[New Thread 0x7fffe37ec700 (LWP 11474)]
[New Thread 0x7fffe37ab700 (LWP 11475)]

[New Thread 0x7fffe1906700 (LWP 11478)]
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
rocksndiamonds: frame delay == 125 ms (max. 8 fps / 16 %)
double free or corruption (out)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) y
Undefined command: "y".  Try "help".
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a2535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f9508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0428d "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78ffc1a in malloc_printerr (str=str@entry=0x7ffff7a05ff8 "double free or corruption (out)") at malloc.c:5341
#4  0x00007ffff7901730 in _int_free (av=0x7ffff7a3bc40 <main_arena>, p=0x55555f80acc0, have_lock=<optimized out>) at malloc.c:4306
#5  0x0000555555713b28 in checked_free (ptr=0x55555f80acd0) at misc.c:1275
#6  0x0000555555705cc8 in FreeSnapshotBuffer (bi_raw=0x55555f80acd0) at snapshot.c:73
#7  0x0000555555714fdf in deleteNodeFromList (node_first=0x7fffffffd898, key=0x0, destructor_function=0x555555705c72 <FreeSnapshotBuffer>) at misc.c:2084
#8  0x0000555555705cf1 in FreeSnapshotBuffers (snapshot_buffers=0x55555c14d2d0) at snapshot.c:79
#9  0x0000555555705d2b in FreeSnapshotSingle () at snapshot.c:93
#10 0x0000555555705ec0 in SaveSnapshotSingle (snapshot_buffers=0x55555b752830) at snapshot.c:177
#11 0x00005555556b3e03 in SaveEngineSnapshotSingle () at game.c:15383
#12 0x00005555556ed824 in TapeQuickSave () at tape.c:1023
#13 0x000055555564a4ae in HandleKey (key=1073741891, key_status=1) at events.c:2241
#14 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd990) at events.c:1462
#15 0x0000555555646b84 in HandleEvents () at events.c:249
#16 0x0000555555646d67 in EventLoop () at events.c:348
#17 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdae8) at main.c:7762
(gdb) # had just tried to save tape, got prompt, pressed enter, dialog went away, it froze
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37ec700 (LWP 15027)]
[New Thread 0x7fffe37ab700 (LWP 15028)]
[New Thread 0x7fffe1906700 (LWP 15029)]
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
[Thread 0x7fffe37ab700 (LWP 15028) exited]
[Thread 0x7fffe37ec700 (LWP 15027) exited]
[Thread 0x7fffe1906700 (LWP 15029) exited]
[Inferior 1 (process 15026) exited normally]
(gdb) # it did save tape
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
y[New Thread 0x7fffe37ec700 (LWP 15092)]
[New Thread 0x7fffe37ab700 (LWP 15093)]
[New Thread 0x7fffe1905700 (LWP 15094)]
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
[Thread 0x7fffe37ab700 (LWP 15093) exited]
[Thread 0x7fffe37ec700 (LWP 15092) exited]
[Thread 0x7fffe1905700 (LWP 15094) exited]
[Inferior 1 (process 15088) exited normally]
(gdb) q
